﻿using Decision.BusinessLayer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for UserAthen
/// </summary>
namespace Decision.athen
{
    public class UserAthen
    {
        public static int ADMIN = 0;
        public static int MANAGER = 3;
        
        public static ECT_USER UserLogin
        {
            get 
            {
                if (System.Web.HttpContext.Current.Session["userLogin"] == null) 
                {
                    return null;
                }
                return (ECT_USER)System.Web.HttpContext.Current.Session["userLogin"]; 
            }
            set
            {
                System.Web.HttpContext.Current.Session["userLogin"] = value;
            }
        }

        public UserAthen()
        {
            //
            // TODO: Add constructor logic here
            //
        }
    }
}